home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre1.z / postgre1 / test / copy_test_inpu < prev    next >
Encoding:
Text File  |  1992-08-27  |  233 b   |  15 lines

  1. #include <stdio.h>
  2.  
  3. main()
  4.  
  5. {
  6.     char s[100];
  7.     PQsetdb("test");
  8.     PQexec("copy edge () to stdout");
  9.     printf("begin copy\n");
  10.     for (PQgetline(s,100); s[0] != '.'; PQgetline(s,100))
  11.         printf("%s\n", s);
  12.     PQendcopy();
  13.     printf("done\n");
  14. }
  15.